#include <iostream>
using namespace std;
 int main()
 {
     int i = 5, p = 5;
     int j, f;
     j = (++i) + (++i) + (++i);
     f = (p++) + (p++) + (p++);
     cout << "++i " << j << endl
          << "i++ " << f << endl;
 }
